package com.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mapper.auto.SchoolInfoV2Mapper;
import com.mapper.auto.SchoolV2Mapper;
import com.model.auto.SchoolInfoV2;
import com.model.auto.SchoolV2;
import com.model.auto.vo.GetSchoolV2Vo;
import com.model.auto.vo.GetSchoolVo;
import com.service.ISchoolInfoV2Service;
import com.service.ISchoolV2Service;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 新高考学校服务实现类
 *
 * @author zhaoyifan
 * @date 2023-09-22
 */
@Service
public class SchoolInfoV2ServiceImpl extends ServiceImpl<SchoolInfoV2Mapper, SchoolInfoV2> implements ISchoolInfoV2Service {

    @Override
    public List<SchoolInfoV2> queryByParams(GetSchoolV2Vo schoolVo) {
        return this.baseMapper.queryByParams(schoolVo);
    }

    @Override
    public Integer queryByTotalParams(GetSchoolV2Vo schoolVo) {
        return this.baseMapper.queryByTotalParams(schoolVo);
    }

    @Override
    public SchoolInfoV2 selectByCode(String code) {
        return this.baseMapper.selectByCode(code);
    }
    @Override
    public SchoolInfoV2 selectBySchoolName(String schoolName) {
        return this.baseMapper.selectBySchoolName(schoolName);
    }
}
